import api from '@/api'



export let addNotice = (title, content) => {
  let data = {
    'title': title,
    'content': content
  }
  return api.post('/option/notice/add', data)
}
export let setOSSConfig = (data) => {
  return api.post('/option/OSSConfig/set', data)
}
export let getOSSConfig = () => {
  return api.get('/option/OSSConfig/get')
}
export let setRoutineConfig = (data) => {
  return api.post('/option/routine/set', data)
}
export let getRoutineConfig = () => {
  return api.get('/option/routine/get')
}
export let removeNotice = () => {
  return api.get('/option/notice/remove')
}
export let getNotice = () => {
  return api.get('/option/notice/get')
}

export let getTeamList = () => {
  return api.get('/team/list')
}

export let removeTeam = (teamname) => {
  let data = {
    teamName: teamname
  }
  return api.post('/team/remove', data)
}

export let findByUserName = (username) => {
  return api.get(`/user/findByUserName/${username}`)
}


